import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/predict/` + url, ...arg)
export default {
	importExcel(data) {
		return request('importExcel', data, 'post')
	},
	copyPreOutCallDetail(data) {
		return request('copyPreOutCallDetail', data, 'post')
	},
	pageList(data) {
		return request('pageList', data, 'post')
	},
	pageDetail(data) {
		return request('pageDetail', data, 'post')
	},
	getCallDetailById(id) {
		return request('getCallDetailById/' + id, null, 'get')
	},
	startCallTask(batchNumber) {
		return request('startCallTask/' + batchNumber, null, 'get')
	},
	pauseCallTask(batchNumber) {
		return request('pauseCallTask/' + batchNumber, null, 'get')
	},
	continueCallTask(batchNumber) {
		return request('continueCallTask/' + batchNumber, null, 'get')
	},
	finishCallTask(batchNumber) {
		return request('finishCallTask/' + batchNumber, null, 'get')
	},
	delPredictCall(batchNumber) {
		return request('delPredictCall/' + batchNumber, null, 'get')
	},
	getCallCount(batchNumber, filterType) {
		return request('getCallCount/' + batchNumber + '?filterType=' + filterType, null, 'get')
	}
}
